export const blkGraphqlFragment = `
    fragment blockWithAffluentInfo on Block {
        BLOCKCHAIN { id }
        HEADER {
            HEIGHT
            COMMIT_FOR_TX
            COMMIT_FOR_TX_RESULT
            COMMIT_FOR_STATE
            COMMIT_FOR_GLOBAL_STATE
            EXPIRED_HEIGHT
            PRESENT_HASH
            PREVIOUS_BLOCK_HEADER {
                PRESENT_HASH
            }
            FOLLOWING_BLOCK_HEADER {
                PRESENT_HASH
            }
            TRANS_COUNT
            TIMESTAMP
            ENDORSEMENTS {
                ACCOUNT_ID
                CERT_ID
                TIMESTAMP
                SIGNATURE
            }
        }
        TRANSACTIONS {
            TYPE
            TXID
            ORDER_IN_BLOCK
            CHAINCODE {
                NAME
                VERSION
            }
            CHAINCODE_DEPLOY_PARAMS
            CHAINCODE_INVOKE_PARAMS
            CHAINCODE_SET_STATE_PARAMS
            GAS_LIMIT
            OID
            SIGNATURE {
                ACCOUNT_ID
                CERT_ID
                TIMESTAMP
                SIGNATURE
            }
            TIMESTAMP
            TRANSACTION_RESULT {
                CODE
                REASON
                SUCCESS
            }
        }
        SUPERVISION_TX {
            TYPE
            TXID
            ORDER_IN_BLOCK
            CHAINCODE {
                NAME
                VERSION
            }
            CHAINCODE_DEPLOY_PARAMS
            CHAINCODE_INVOKE_PARAMS
            CHAINCODE_SET_STATE_PARAMS
            GAS_LIMIT
            OID
            SIGNATURE {
                ACCOUNT_ID
                CERT_ID
                TIMESTAMP
                SIGNATURE
            }
            TIMESTAMP
            TRANSACTION_RESULT {
                CODE
                REASON
                SUCCESS
            }
        }
    }
    `;

export const liteBlkGraphqlFragment = `
    fragment liteBlockWithAffluentInfo on Block {
        BLOCKCHAIN { id }
        HEADER {
            HEIGHT
            COMMIT_FOR_TX
            COMMIT_FOR_TX_RESULT
            COMMIT_FOR_STATE
            COMMIT_FOR_GLOBAL_STATE
            EXPIRED_HEIGHT
            PRESENT_HASH
            PREVIOUS_BLOCK_HEADER {
                PRESENT_HASH
            }
            FOLLOWING_BLOCK_HEADER {
                PRESENT_HASH
            }
            TRANS_COUNT
            TIMESTAMP
            ENDORSEMENTS {
                ACCOUNT_ID
                CERT_ID
                TIMESTAMP
                SIGNATURE
            }
        }
        TRANSACTIONS {
            TXID
        }
        SUPERVISION_TX {
            TXID
        }
    }
    `;
